<?php
  $p="http://informer.gismeteo.ru/html/getinformer_new.php?tnumber=1&city0=4918%D0%93%D0%BE%D0%BC%D0%B5%D0%BB%D1%8C&codepg=utf-8&par=4&inflang=rus&domain=by&vieinf=3&p=1&w=1&tblstl=gmtbl&tdttlstl=gmtdttl&tdtext=gmtdtext&new_scheme=1";
  $data=get_php_data($p);
  $data=substr($data,strpos($data,"<table "));
  $p1=strpos($data,"gmtdttl")-117;
  $s1=substr($data,$p1);
  $p2=strpos($s1,"</table>")+18;
  $data=substr($data,0,$p1).substr($s1,$p2);
  $p1=strrpos($data,"<table ");
  $s1=substr($data,0,$p1);
  $p2=strrpos($s1,"<tr>");
  $data=substr($data,0,$p2).'</table>';
  print "<style type='text/css'>.gmtdttl {font-size: 0px; line-height:0px } .gmtdtext {font-size: 12px; font-weight: bold; color: #ffffff; text-align:center; background:url(/img/weather2.png);} .tddiv { text-align: left !important;} div#cntdiv{ position:absolute; display:block;} div#infselectlist{ background-color: #ffffff; border: 1px solid #7c7c7c; width:100%; height:100%; position:relative; left:0; right:0; visibility:hidden; cursor:pointer;} div#hiddentl{ position:relative; left:0; right:0; visibility:hidden;} </style>";
  print $data;
// ----------------------------------------------------------------
	function get_php_data($path) {
		$curl=curl_init($path);
		curl_setopt($curl,CURLOPT_HTTPHEADER,Array('Host: avtovokzal.gomel.by'));
		curl_setopt($curl,CURLOPT_USERAGENT,"Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.5.22 Version/10.50");
		curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
		$answer=curl_exec($curl);
		curl_close($curl);
		return $answer;
	}
?>